#include<stdio.h>
int main (void)
{
    int number,i;
    double sum;
    scanf("%d",&number);
    for(i=1;i<=number;i++)
    {
        sum+=1.0/(2*i-1);
    }
    printf("sum = %.6f",sum);

    return 0;
}
